package org.jupiter.blog.api.dto;

import lombok.Data;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

@EqualsAndHashCode(callSuper = true)
@Data
public class JupiterRoleDTO extends PageRequestDTO {

	private String uuid;

	@NotBlank(message = "角色名称不能为空")
	@Size(max = 50, message = "角色名称不能超过50个字符")
	private String name;

	@Size(max = 200, message = "角色描述不能超过200个字符")
	private String description;

	private LocalDateTime createTime;

	private LocalDateTime updateTime;

	private LocalDateTime deleteTime;
}